<template>
    <div>
        <!-- 面包屑导航区 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>车间看板管理</el-breadcrumb-item>
        <el-breadcrumb-item>车间物料消耗看板</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 卡片视图 -->
    <el-card>
        <el-row :gutter="10">
            <h1>物料消耗看板</h1>
        </el-row>
        <!-- 表格区域 -->
        <el-table stripe border
        ref="multipleTable"
        :data="getMaterialList"
        tooltip-effect="dark"
        style="width: 100%">
    <el-table-column prop="item" label="物料编号" width="260" align="center">
    </el-table-column>
    <el-table-column prop="item_name" label="物料名称" width="260" align="center">
    </el-table-column>
    <el-table-column prop="zs" label="库存总数" width="220" align="center">
    </el-table-column>
    <el-table-column prop="us" label="消耗数量" width="220" align="center">
    </el-table-column>
    <el-table-column prop="kc" label="结存数量" width="220" align="center">
    </el-table-column>
    <el-table-column prop="balance_up" label="库存上限" width="220" align="center">
    </el-table-column>
    <el-table-column prop="balance_down" label="安全库存数" width="220" align="center">
    </el-table-column>
  </el-table>
    </el-card>
    </div>
</template>

<script>
import axios from 'axios'
export default {
  data () {
    return {
      getMaterialList:[]
    }
  },
  mounted () {
    let fromdata = new FormData();
    fromdata.append("pageSize",10)
    axios.post('/IE_MES/kanban/getMaterialConsumptionDataFindByPage.shtml',fromdata).then(
      res => {
        console.log(res.data.records);
        this.getMaterialList = res.data.records
      }
    )
  },
  methods: {
    
  }
}
</script>

<style lang="less" scoped>

</style>
